/**
 * Copyright 2013 DJSearch Co.,Ltd. All rights reserved.
 * DTM PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.djsearch.controller;

/**
 * @author dingzhongchang
 * @version 1.0.0
 */
public interface IAsyncHandler {
	/**
	 * Fired when a request returns successfully, override to handle in your own
	 * code
	 * 
	 * @param response
	 *            the body of the HTTP response from the server
	 */
	public void onSuccess(JSONResp response);
	
	// Initiated the request
	public void onStart();

	// Successfully got a response
	public void onSuccess(String response);

	// Response failed
	public void onFailure(Throwable e, String response);

	// // Completed the request (either success or failure)
	public void onFinish();
	
	
}
